import React from 'react';
import { Provider } from 'react-redux'
import { browserHistory } from 'react-router';
import { storiesOf, action } from '@kadira/storybook';
import { muiTheme } from 'storybook-addon-material-ui';
import configureStore from '../../stores/configureStore';
import Welcome from './Welcome';
import 'normalize.css';
import '../../App.css';
/*global module*/

const store = configureStore(browserHistory);

storiesOf('トップ画面', module)
  .addDecorator(muiTheme())
  .addDecorator(getStory => (
    <Provider store={store}>
      { getStory() }
    </Provider>
  ))
    .add('to トップ画面', () => (
      <Welcome onAction={action('クリックされました')}/>
    ));
